﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marmat.Foundation
{
    /// <summary>
    /// 组织机构的接口支持
    /// </summary>
    public interface IOrganization
    {

        /// <summary>
        /// 获取组织结构的层级。
        /// </summary>
        /// <returns></returns>
        IEnumerable<IOrganizationEntity> GetOrganization();

        /// <summary>
        /// 获取指定组织下的用户。
        /// </summary>
        /// <param name="organization_id"></param>
        /// <returns></returns>
        IEnumerable<IUserEntity> GetUsers(string organization_id);
    }
}
